

package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author guonh
 * @since 2018-01-22
 */
@Data

public class AdminSysDeptAddDto {


    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
	@ApiModelProperty(value = "部门名称", dataType = "String" )
	@Size(min = 1,max = 50,message = "部门名称长度 1-50")
    private String name;

    /**
     * 排序
     */
    @NotNull(message = "排序值不能为空")
	@ApiModelProperty(value = "排序", dataType = "Integer" )
    private Integer sort;


    /**
     * 父级部门id
     */
	@ApiModelProperty(value = "父级部门id", dataType = "Long" )
    private Long parentId;


}
